<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <meta content="text/html;charset=UTF-8"/>
    <jsp:include page="/modules/common/js/common.jsp"/>
    <script type="text/javascript">
        $().ready(function () {
            var option = {
                head: [
                    {name: "id", title: "编号", width: 10},
                    {name: "name", title: "名称", width: 80},
                    {name: "operation", title: "操作", width: 100}
                ],//表格标题定义
                searchURL: wp.config.baseUrl + "/rest/admin/list",
                operation: {
                    useable: true,
                    edit: false,
                    delete: false,
                    other: function (enterprise) {
                        if (enterprise["status"] == 1) {
                            return "<a href='" + basePath + "rest/admin/mvc/enterprise/" + enterprise["id"] + "'>审核</a>";
                        } else {
                            return "<a href='" + basePath + "rest/admin/mvc/enterprise/" + enterprise["id"] + "'>查看</a>";
                        }
                    }
                },
                execCmd: function () {
                    this.queryFn();
                }
            };
            initTable(option);
        });
    </script>
</head>
<body>
<div class="path">
    <a href="">首页</a> &raquo; 企业列表<span>(共<span id="pageTotal"></span>条记录)</span>
</div>
<div class="bar">
    <jsp:include page="/modules/common/search.jsp">
        <jsp:param value="name,名称,LIKE,true" name="searchKey"/>
        <jsp:param value="code,编号,EQUAL" name="searchKey"/>
        <jsp:param value="false" name="add"/>
        <jsp:param value="false" name="delete"/>
    </jsp:include>
</div>
<table id="listTable" class="list">
</table>
</body>
</html>